Interface Player
extends NodeJS.EventEmitterexternal NodeJS.EventEmitter
Properties
on: () => Playerinterface Playerstructures/Player
Emitted when a track starts.
· listener - undefined
· listener - undefined
on: () => Playerinterface Playerstructures/Player
Emitted when a track is finished.
· listener - undefined
· listener - undefined
on: (
event: "pause",
listener: (
) => Playerinterface Playerstructures/Playerlistener: (
guild: Guild,
channel: TextChannel | GuildTextBasedChannel
) => void | Promiseexternal Promise<void> | anychannel: TextChannel | GuildTextBasedChannel
Emitted when the music is turned off
· listener - undefined
· listener - undefined
on: (
event: "resume",
listener: (
) => Playerinterface Playerstructures/Playerlistener: (
guild: Guild,
channel: TextChannel | GuildTextBasedChannel
) => void | Promiseexternal Promise<void> | anychannel: TextChannel | GuildTextBasedChannel
Emitted when the music is turned on
· listener - undefined
· listener - undefined
on: (
event: "stop",
listener: (
) => Playerinterface Playerstructures/Playerlistener: (
guild: Guild,
channel: TextChannel | GuildTextBasedChannel
) => void | Promiseexternal Promise<void> | anychannel: TextChannel | GuildTextBasedChannel
Emitted when the music is stopped
· listener - undefined
· listener - undefined
on: (
event: "connected",
listener: (
) => Playerinterface Playerstructures/Playerlistener: (
guild: Guild,
channel: TextChannel | GuildTextBasedChannel,
voiceChannel: VoiceBasedChannel | VoiceChannel
) => void | Promiseexternal Promise<void> | anychannel: TextChannel | GuildTextBasedChannel,
voiceChannel: VoiceBasedChannel | VoiceChannel
Emitted when the client is connected to a voice channel.
This event will not be emitted is you used the assignVoiceConnection()
method.
· listener - undefined
· listener - undefined
· listener - undefined
on: (
event: "disconnected",
listener: (
) => Playerinterface Playerstructures/Playerlistener: (
guild: Guild,
channel: TextChannel | GuildTextBasedChannel,
voiceChannel: VoiceBasedChannel | VoiceChannel
) => void | Promiseexternal Promise<void> | anychannel: TextChannel | GuildTextBasedChannel,
voiceChannel: VoiceBasedChannel | VoiceChannel
Emitted when the client is disconnected to a voice channel.
· listener - undefined
· listener - undefined
· listener - undefined
on: () => Playerinterface Playerstructures/Player
Emitted when an error occured
· listener - undefined
Emitted when a debug information is communicated by Discord.Js/voice
· listener - undefined